<section id="services">

<!-- Page Content -->
 {{ range $index, $element :=  .Data.Pages.ByParam "rank" }}{{ if or (eq .Section "services") (eq .Section "post") }}
    {{ if modBool $index 2 }}
    <div class="content-section-a">

        <div class="container">

            <div class="row">
                <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
                    <hr class="section-heading-spacer">
                    <div class="clearfix"></div>
                    <h2 class="section-heading">{{ .Title }}</h2>
                    {{ .Content }}
                </div>
                {{ with .Params.img }}
                <div class="img-container col-lg-6 col-md-6 col-sm-12 col-xs-12">
                    <img class="img-responsive" src="images/{{ . }}" alt="">
                </div>
                {{ end }}
            </div>

        </div>
        <!-- /.container -->

    </div>
    <!-- /.content-section-a -->
    {{ else }}

    <div class="content-section-b">

        <div class="container">

            <div class="row">
                <div class="col-lg-5 col-md-6 col-lg-offset-1 col-md-push-6  col-sm-12 col-xs-12">
                    <hr class="section-heading-spacer">
                    <div class="clearfix"></div>
                    <h2 class="section-heading">{{ .Title }}</h2>
                    {{ .Content }}
                </div>
                {{ with .Params.img }}
                <div class="col-lg-5 col-md-5 col-lg-pull-6 col-md-pull-6 col-sm-12 col-xs-12">
                  <img class="img-responsive" src="images/{{ . }}" alt="">
                </div>
                {{ end }}
            </div>

        </div>
        <!-- /.container -->

    </div>
    {{ end }}
    <!-- /.content-section-b -->
    {{ end }}
{{ end }}

</section>
